package interfaces.print;



import java.util.Scanner;

/**
 * @Author admin
 * @Date 2019/3/22 10:25
 */
public class Test {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        System.out.println("选择你要的打印机");
        System.out.println("1------惠普\n2-------佳能");
        int choose=in.nextInt();
        Pronter pronter = PrinterFactory.getPronter(choose);
        pronter.open();
        pronter.print();
        pronter.close();

    }



}
